package com.bryant.demo05.apis


import com.bryant.demo05.bean.LoginRequest
import com.bryant.demo05.bean.LoginResponse
import com.bryant.demo05.bean.UserResponse
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST


interface ApiService {
    // 1. 登录接口
    @POST("login")
    suspend fun login(
        @Body body: LoginRequest
    ): LoginResponse

    //2. 获取用户信息接口
    @GET("user-info")
    suspend fun getUserInfoApi(): UserResponse
}